package com.example.controller;

import com.example.utils.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 简单测试admin角色是否能被访问或者拦截
 */
@RestController
@RequestMapping("/admin")
public class AdminController {
    @GetMapping("/test")
    public Result test(){
        return Result.success("能被访问！！");
    }
}
